package com.example.habitedtaskservice.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class HabitedTask {
    @TableId(type = IdType.ASSIGN_ID)
    private String hTaskId;

    private String hTaskTitle;

    private String hTaskDescription;

    private Integer hTaskContinuousSignIn;

    private String hTaskWeekFrequency;

    private Integer hTaskDaySignInFrequency;

    @TableField(fill = FieldFill.INSERT)
    private Date hTaskGmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date hTaskGmtUpdate;

    @Version
    private Integer hTaskVersion;

    @TableLogic
    private Integer hTaskDeleted;

    private Long userId;
}
